package com.sumainfor.wx.system.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.gmio.service.ApplyRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Meng
 * @ClassName RepairController
 * @date 2019/8/12 16:26
 * @description: TODO 维修
 */
@RestController
@RequestMapping("/repair")
public class ApplyRepairController {

    @Autowired
    private ApplyRepairService applyRepairService;

    /**
     * @Description //TODO 服务管家发起维修申请
     * @return com.sumainfor.common.util.JsonResult
     * @Param [params]
     * @Date 2019/8/12 16:30
     **/
    @PostMapping("addRepair")
    public JsonResult addRepair(@RequestBody Map<String, Object> params) {

        return applyRepairService.addRepair(params);
    }
}
